<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="s"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ page pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
    <head>
        <title>选择类型</title>
        <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
		<link href="<c:url value="/resources/css/normalize.css" />" rel="stylesheet" type="text/css" />
		<link href="<c:url value="/resources/css/lib.css" />" rel="stylesheet" type="text/css" />        
        <link href="<c:url value="/resources/css/style.css" />" rel="stylesheet" type="text/css" />

        <script src="<c:url value="/resources/jquery/jquery.js" />"></script>
        <script src="<c:url value="/resources/scripts/categoryUtil.js" />"></script>        
        <style>
            #categorySelContainer select{
                margin-right: 10px;
            }
        </style>
    </head>
    <body>
        <p class="f12">请选择分类:</p>
        <form id="form" action="<c:url value="/product/update" />" method="get">
        <input type="hidden" name="categoryId" id="categoryId" />
        </form>
        <p id="categorySelContainer" class="f12"></p>
        <br />
        <div class="f12">
            <a id="btnSelectCategory" href="javascript:void(0);">确定</a>
        </div>
    </body>
</html>

<script>

$(document).ready(function(){
    CategoryUtil.restoreSel();

    $('#btnSelectCategory').click(function(){
        document.getElementById('form').submit();
    });
});

</script>
